<template>
	<el-main>
		<el-row :gutter="15">
			<el-col :lg="12">
				<el-card shadow="never" header="MP4点播">
					<jd-video :src="playUrl" autoplay="true" :options="options"></jd-video>
				</el-card>
			</el-col>
			<el-col :lg="12">
				<el-card shadow="never" header="HlS(m3u8)直播">
					<el-row :gutter="1">
						<el-col :span="12">
							<jd-video :src="liveUrl" isLive :options="{volume: 0}"></jd-video>
						</el-col>
						<el-col :span="12">
							<jd-video :src="liveUrl_2" isLive :options="{volume: 0}"></jd-video>
						</el-col>
					</el-row>
					<el-row :gutter="1" style="margin-top: 1px;">
						<el-col :span="12">
							<jd-video :src="liveUrl_3" isLive :options="{volume: 0}"></jd-video>
						</el-col>
						<el-col :span="12">
							<jd-video :src="liveUrl_4" isLive :options="{volume: 0}"></jd-video>
						</el-col>
					</el-row>
				</el-card>
			</el-col>
		</el-row>
	</el-main>
</template>

<script>
	import jdVideo from '@/components/jdVideo'

	export default {
		name: 'jdvideo',
		components: {
			jdVideo
		},
		data() {
			return {
				playUrl: "http://vfx.mtime.cn/Video/2019/02/04/mp4/190204084208765161.mp4",
				options: {
					poster: "https://fastly.jsdelivr.net/gh/scuiadmin/CDN/video/scui-player-demo-1080_Moment.jpg",
					pip: true
				},
				liveUrl: "http://cloud.ruiboyun.net/vod/vod/3bahma4c/index.m3u8",
				liveUrl_2: "http://cloud.ruiboyun.net/vod/vod/3bahma4c/index.m3u8",
				liveUrl_3: "http://cloud.ruiboyun.net/vod/vod/3bahma4c/index.m3u8",
				liveUrl_4: "http://cloud.ruiboyun.net/vod/vod/3bahma4c/index.m3u8",
			}
		},
		mounted() {

		},
		methods: {

		}
	}
</script>

<style>
</style>
